<?php

use yii\helpers\ArrayHelper;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model app\models\AccProject */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="acc-project-form">

    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'acc_id')->hiddenInput(['value' => Yii::$app->user->identity->acc_id])->label(false); ?>
	
	<!--choose project-->
	<?= $form->field($model, 'project_id')->dropDownList($arrayProject)->label("Chọn dự án"); 
	?>

    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? 'Đăng ký' : 'Cập nhật', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>
